package com.basin.common.redisson.util;

import cn.hutool.extra.spring.SpringUtil;
import lombok.extern.slf4j.Slf4j;
import org.redisson.api.RedissonClient;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Slf4j
public final class RedisUtil {
    private RedisUtil() {
    }

    private static final RedissonClient REDISSON_CLIENT = SpringUtil.getBean(RedissonClient.class);

    public static RedissonClient getClient() {
        return REDISSON_CLIENT;
    }

}
